<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Vue列表展示</title>
    </head>
    <body>
        <div id="app">
            <ul>
                <!-- 循环数组内容到 -->
                <li v-for="item in movies">{{ item }}</li>
            </ul>
        </div>
    </body>
    <script src="../js/vue.js"></script>
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                message: '测试数据',
                movies:[
                    '星际穿越',
                    '盗梦空间',
                    '湮灭',
                    '复仇者联盟',
                    '流浪地球',
                ],
            }
        })
    </script>
</html>